using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Model;

namespace ESoft.Domain.Entity
{
    /// <summary>
    /// Shop
    /// </summary>    
	[Table("shop")]
    public partial class ShopEntity : BaseFakeModel<String>
    {		    
        /// <summary>
        /// 
        /// </summary>
		[Column("shop_name")]
        public string ShopName { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("area_id")]
        public string AreaId { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("logo_image_id")]
        public string LogoImageId { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("qq_num")]
        public string QqNum { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("work_start_time")]
        public DateTime? WorkStartTime { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("work_end_time")]
        public DateTime? WorkEndTime { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("phone")]
        public string Phone { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("create_by")]
        public string CreateBy { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("create_time")]
        public DateTime? CreateTime { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("last_update_time")]
        public DateTime? LastUpdateTime { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("last_update_by")]
        public string LastUpdateBy { get; set; }
    }

	public class ShopEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<ShopEntity>(new EntityTypeConfiguration<ShopEntity>());
        }
    }
}

